import time

username = "root"
password = "123456"

for i in range(1,10,1):
    a = input("请输入用户名 :")
    b = input("请输入密码 :")
    if a == username and b == password:
        print("登陆成功")
    else:
        print("账号密码错误！")
        if i == 3:
            time.sleep(3.0)
